package com.example.chat.model.ro;

import com.example.chat.constant.StaticConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class AssetsRequestRecordRO {

    /**
     * 申请人姓名
     */
    @NotBlank(message = "申请人姓名不能为空")
    @ApiModelProperty(name = "申请人姓名")
    private String empId;

    @DateTimeFormat(pattern = StaticConstant.DATE_FORMAT)
    @NotNull(message = "申请时间不能为空")
    private Date requestDate;

    /**
     * 申请人岗位
     */
    @NotBlank(message = "申请人岗位不能为空")
    private String positionId;

    /**
     * 申请设备用途
     */
    @NotBlank(message = "申请设备用途不能为空")
    private String requestUse;

    /**
     * 备注
     */
    private String description;

    /**
     * 审批人
     */
    @NotBlank(message = "审批人不能为空")
    private String approvalEmpId;

    @NotBlank(message = "设备类型不能为空")
    private String equipMentType;
}